package base;

import java.util.ArrayList;
import java.io.*;

public class Crossword implements Serializable {

	private Word keyWord;
	private ArrayList words;
	private int theme;
	private int width;
	private int height;
	private int min;
	private int sec;

	public Crossword() {
		try {
			jbInit();
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

	public Crossword(int width, int height) {

		this.width = width;
		this.height = height;
		words = new ArrayList();
	}

	public int getHeight() {
		return height;
	}

	public int getWidth() {
		return width;
	}

	public int getTheme() {
		return theme;
	}

	public void setTheme(int i) {
		theme = i;
	}

	public void addWord(Word w) {
		words.add(w);
	}

	public ArrayList getWords() {
		return words;
	}

	public void setWords(ArrayList al) {
		words = al;
	}

	public Word getKey() {
		return keyWord;
	}

	public void setKey(Word w) {
		keyWord = w;
	}

	public void setMin(int a) {
		min = a;
	}

	public void setSec(int a) {
		sec = a;
	}

	public int getMin() {
		return min;
	}

	public int getSec() {
		return sec;
	}

	private void jbInit() throws Exception {
	}
}
